<?php
/**
 * Created by PhpStorm.
 * User: 张红雨
 * Date: 2018/8/2
 * Time: 21:37
 */
function isWebLogin() {
    if (jiami(cookie('username') . cookie('uid') . C('COOKIE')) == cookie('key')) {
        return cookie('uid');
    } else {
        return false;
    }
}

function check_verify($code, $id = "") {
    $verify = new \Think\Verify();
    return $verify->check($code, $id);
}
